package com.mingtu.guards.adapter;

import androidx.annotation.NonNull;

import com.blankj.utilcode.util.StringUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.mingtu.guards.R;
import com.mingtu.guards.bean.ContactsDeptBean;

public class ContactsDepAdapter extends BaseQuickAdapter<ContactsDeptBean.ListBean, BaseViewHolder> {

    public ContactsDepAdapter() {
        super(R.layout.item_contacts_dep);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, ContactsDeptBean.ListBean listBean) {
        String deptName = listBean.getName();
        if (!StringUtils.isEmpty(deptName)) {
            helper.setText(R.id.tv_text, deptName);
        }
    }
}
